package com.han.spider.safecounty.entity;

import java.io.Serializable;

/**
 * @Author: Hanjiafeng
 * @Date: 2020/5/23
 * @Desc:
 */
public class DeviceEntity implements Serializable {
    /**
     * 设备码
     */
    private String code;
    /**
     * 名称
     */
    private String name;
    /**
     * 组id
     */
    private int groupId;
    /**
     * 类型
     */
    private String model;

    public DeviceEntity(String code, String name, int groupId, String model) {
        this.code = code;
        this.name = name;
        this.groupId = groupId;
        this.model = model;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Override
    public String toString() {
        return "DeviceEntity{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", groupId=" + groupId +
                ", model='" + model + '\'' +
                '}';
    }
}
